<template>
  <div class="app-container">
    <el-form  class="grid column_4" ref="queryForm" size="small" label-width="140px">
      <el-form-item class="grid-item mr_unset" label="证件号码" >
        <el-input placeholder="请输入证件号码" />
      </el-form-item>
      <el-form-item class="grid-item mr_unset" label="姓名" >
        <el-input placeholder="请输入姓名" />
      </el-form-item>
      <el-form-item class="grid-item mr_unset" label="性别" >
        <el-select class="input-block" :options="genders" placeholder="请选择性别"> <el-option
            v-for="item in genders"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option> </el-select>
      </el-form-item>
      <el-form-item class="grid-item mr_unset" label="年龄" >
        <el-input placeholder="请输入年龄" />
      </el-form-item>
      <el-form-item class="grid-item mr_unset" label="现住完整详细地址" >
        <el-input placeholder="请输入现住完整详细地址" />
      </el-form-item>
      <el-form-item class="grid-item mr_unset" label="民族" >
        <el-select class="input-block" placeholder="请选择民族"> <el-option
            v-for="item in nations"
            :key="item.id"
            :label="item.nation"
            :value="item.id"
          >
          </el-option></el-select>
      </el-form-item>

      <el-form-item class="grid-item mr_unset" label="是否新增患者" >
        <el-select class="input-block" placeholder="请选择是否新增患者">  <el-option
            v-for="item in status"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option></el-select>
      </el-form-item>
      <el-form-item class="grid-item mr_unset" label="省份" >
        <el-select class="input-block" placeholder="请选择省份"> </el-select>
      </el-form-item>
      <el-form-item class="grid-item mr_unset" label="城市" >
        <el-select class="input-block" placeholder="请选择城市"> </el-select>
      </el-form-item>
      <el-form-item class="grid-item mr_unset" label="县城" >
        <el-select class="input-block" placeholder="请选择县城"> </el-select>
      </el-form-item>
      <el-form-item class="grid-item mr_unset" label="乡镇（街道）" >
        <el-select class="input-block" placeholder="请选择乡镇（街道）"> </el-select>
      </el-form-item>
      <el-form-item class="grid-item mr_unset" label="多人群分类" >
        <el-select class="input-block" placeholder="请选择多人群分类"> <el-option
            v-for="item in types"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option></el-select>
      </el-form-item>
      <el-form-item class="grid-item mr_unset" label="本人联系电话" >
        <el-input placeholder="请输入本人联系电话" />
      </el-form-item>
      <el-form-item class="grid-item mr_unset" label="学校" >
        <el-input placeholder="请输入学校" />
      </el-form-item>
      <el-form-item class="grid-item mr_unset" label="班级" >
        <el-input placeholder="请输入班级" />
      </el-form-item>
      <el-form-item class="grid-item mr_unset" label="寺庙名称" >
        <el-input placeholder="请输入寺庙名称" />
      </el-form-item>

      <el-form-item class="grid-item mr_unset" label="实际筛查时间" >
        <el-date-picker

          class="input-block"
          type="daterange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
        >
        </el-date-picker>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini"
          >搜索</el-button
        >
        <el-button icon="el-icon-refresh" size="mini">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          v-hasPermi="['system:role:add']"
          >新增</el-button
        >
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          v-hasPermi="['system:role:export']"
          >下载模板</el-button
        >
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          v-hasPermi="['system:role:export']"
          >导出现场表</el-button
        >
      </el-col>
      <el-col :span="1.5">
        <el-button

          plain
          icon="el-icon-plus"
          size="mini"
          v-hasPermi="['system:role:export']"
          >导入</el-button
        >
      </el-col>
      <el-col :span="1.5">
        <el-input size="mini" placeholder="请输入证件号"></el-input>
      </el-col>
      <right-toolbar


      ></right-toolbar>
    </el-row>

    <el-table>
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="编号" prop="roleId" width="120" />

      <el-table-column
        label="班级"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="寺庙"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="实际筛查时间"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="采集筛查时间"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="采集筛查单位"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="PPD注射时间"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="PPD注射单位"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="PPD结果时间"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="DR筛查时间"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="DR筛查单位"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="CT筛查时间"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="CT筛查单位"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="谈筛查时间"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="谈筛查单位"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="实验室筛查时间"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="实验室筛查单位"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="诊断筛查时间"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="诊断筛查单位"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="心电图筛查时间"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="心电图筛查单位"

        :show-overflow-tooltip="true"
        width="150"
      />
      <el-table-column
        label="备注"

        :show-overflow-tooltip="true"
        width="150"
      />
    </el-table>
  </div>
</template>

<script>
import { genders, status, types } from "@/model/options";
import { getNations } from "@/api/common";
import { scrub } from '@/filter/index';
export default {
  name: "Local",
  data() {
    return {
      genders,
      status,
      types,
      nations: [],
      formState: {

      },
      list: [],
      pagination: {},
    };
  },

  methods: {
    async getTableDate() {
      const { list, pagination } = await getLocalList();
      console.log("result", list, pagination);
      this.list = list;
      this.pagination = pagination;
    },
    async getData() {
      this.nations = (await getNations()) || [];

    },
  },
  mounted() {
    this.getData();
    this.getTableDate();
  },
};
</script>
